/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const prodRouter = {
  path: '/prod',
  component: Layout,
  redirect: 'noRedirect',
  name: 'ComponentDemo',
  meta: {
    title: '产品管理',
    icon: 'component'
  },
  children: [
    {
      path: 'prod-prodList',
      component: () => import('@/views/prod/prod-prodList/prod-prodList'),
      name: 'prod-prodList',
      meta: { title: '产品管理' }
    },
    {
      path: 'prod-category',
      component: () => import('@/views/prod/prod-category/prod-category'),
      name: 'prod-category',
      meta: { title: '分类管理' }
    },
    {
      path: 'prod-prodTag',
      component: () => import('@/views/prod/prod-prodTag/prod-prodTag'),
      name: 'prod-prodTag',
      meta: { title: '分组管理' }
    },
    {
      path: 'prod-prodComm',
      component: () => import('@/views/prod/prod-prodComm/prod-prodComm'),
      name: 'prod-prodComm',
      meta: { title: '评论管理' }
    },
    {
      path: 'prod-spec',
      component: () => import('@/views/prod/prod-spec/prod-spec'),
      name: 'prod-spec',
      meta: { title: '规格管理' }
    },
  ]
}

export default prodRouter
